package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TStockroomMapper;
import com.ruoyi.system.domain.TStockroom;
import com.ruoyi.system.service.ITStockroomService;

/**
 * 库房管理Service业务层处理
 * 
 * @author hu
 * @date 2024-05-08
 */
@Service
public class TStockroomServiceImpl implements ITStockroomService 
{
    @Autowired
    private TStockroomMapper tStockroomMapper;

    /**
     * 查询库房管理
     * 
     * @param stockroomId 库房管理主键
     * @return 库房管理
     */
    @Override
    public TStockroom selectTStockroomByStockroomId(Integer stockroomId)
    {
        return tStockroomMapper.selectTStockroomByStockroomId(stockroomId);
    }

    /**
     * 查询库房管理列表
     * 
     * @param tStockroom 库房管理
     * @return 库房管理
     */
    @Override
    public List<TStockroom> selectTStockroomList(TStockroom tStockroom)
    {
        return tStockroomMapper.selectTStockroomList(tStockroom);
    }

    /**
     * 新增库房管理
     * 
     * @param tStockroom 库房管理
     * @return 结果
     */
    @Override
    public int insertTStockroom(TStockroom tStockroom)
    {
        return tStockroomMapper.insertTStockroom(tStockroom);
    }

    /**
     * 修改库房管理
     * 
     * @param tStockroom 库房管理
     * @return 结果
     */
    @Override
    public int updateTStockroom(TStockroom tStockroom)
    {
        return tStockroomMapper.updateTStockroom(tStockroom);
    }

    /**
     * 批量删除库房管理
     * 
     * @param stockroomIds 需要删除的库房管理主键
     * @return 结果
     */
    @Override
    public int deleteTStockroomByStockroomIds(Integer[] stockroomIds)
    {
        return tStockroomMapper.deleteTStockroomByStockroomIds(stockroomIds);
    }

    /**
     * 删除库房管理信息
     * 
     * @param stockroomId 库房管理主键
     * @return 结果
     */
    @Override
    public int deleteTStockroomByStockroomId(Integer stockroomId)
    {
        return tStockroomMapper.deleteTStockroomByStockroomId(stockroomId);
    }
}
